<template>
  <view class="padding container">
    <view class="notification">
      <text class="notification-title-container">
		  <text class="notification-title">{{ notice.clientName }}</text> <!-- 通知标题内容 -->
	  </text> <!-- 通知标题内容 -->
      <view class="notification-info">
        <text class="notification-time">{{ notice.createTime }}</text> <!-- 通知时间 -->
        <text class="notification-publisher">{{ notice.username || '管理员' }}</text> <!-- 发布者 -->
      </view>
      <text class="notification-content">{{ notice.content }}</text> <!-- 通知正文内容 -->
    </view>
  </view>
</template>

<script>
	export default {
		onLoad(options) {
		  var data = JSON.parse(options.data)
		  this.notice=data
		},
		data() {
			return {
				notice:{}
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
.container {
  padding: 16px;
  background-color: #f5f5f5;
}

.header {
  padding: 10px;
  display: flex;
  justify-content: center; /* 标题居中 */
}

.title {
  font-size: 18px;
  font-weight: bold;
  text-align: center; /* 标题文字居中 */
}

.notification {
  padding: 16px;
  margin-top: 10px;
}

.notification-title-container {
  display: flex;
  justify-content: center; /* 通知标题居中 */
  margin-bottom: 8px;
}

.notification-title {
  font-size: 30px;
  font-weight: bold;
}

.notification-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #888;
}

.notification-time, .notification-publisher {
  font-size: 14px;
}

.notification-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
</style>
